package com.bob.web.common.constant;

import lombok.Data;

import javax.xml.ws.Response;
import java.io.Serializable;

/**
 * 名称: ResponseResult<br>
 * 描述:<br>
 * 类型: JAVA<br>
 * 最近修改时间:2017/7/6 10:13<br>
 *
 * @author BoYangsh
 * @version [版本号, V1.0]
 * @since 2017/7/6 10:13
 */
@Data
public class ResponseResult implements Serializable {

	private static final long serialVersionUID = -5777540198309612499L;

	private String code;

	private String msg;

	private Object data;

	public ResponseResult(CodeConstant codeConstant) {
		this.code = codeConstant.getCode();
		this.msg = codeConstant.getMsg();
	}

	public ResponseResult(CodeConstant codeConstant, Object data) {
		this(codeConstant);
		this.data = data;
	}
}
